We want the whole dialog to handle events while shown. To compensate
for the entry not being "grabbed", make it take focus when showing.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>
if (this._open)
return;
- if (!Main.pushModal(this._entry, { actionMode: Shell.ActionMode.LOOKING_GLASS }))
+ if (!Main.pushModal(this, { actionMode: Shell.ActionMode.LOOKING_GLASS }))
return;
this._notebook.selectIndex(0);
});
this._windowList.update();
+ this._entry.grab_key_focus();
}
close() {
duration,
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
onComplete: () => {
- Main.popModal(this._entry);
+ Main.popModal(this);
this.hide();
},
});